More cleanup#5
Conversation
|
@amogh-jahagirdar I think some tests are failing otherwise change looks fine to me. Seems to be failing at the parser tests because i think we now are using the |
59ccfc8 to
2f69389
Compare
|
|
||
| PartitionSpec partitionSpec = specsById.get(fileScanTask.file().specId()); | ||
| RESTFileScanTaskParser.toJson(fileScanTask, deleteFileReferences, partitionSpec, gen); | ||
| PartitionSpec spec = specsById.get(fileScanTask.file().specId()); |
There was a problem hiding this comment.
Should there also be validation on the map itself specsById to ensure this is not null otherwise this will throw npe?
There was a problem hiding this comment.
Yeah I think it's good to add validation for that, but not here imo, I think I'd add it a higher level for each response so that it's clear in the failure that a specific response requires the specs by ID to be set when serializing
2f69389 to
7544d4c
Compare
No description provided.